<?php
function status($string)
{
	//$string="\'".$string."\'"
	echo "<script type='text/javascript'>
	status(\"".$string."\");
	</script>";
}
//write javascript
function w_js($string)
{
	echo "<script type='text/javascript'>".$string."</script>";
}
function ajax_js($label,$method,$content)
{
	$string="$(\"#$label\").$method (\"$content\")";
	w_js($string);
}
?>